package com.dabbo.starship.block;

import java.rmi.RemoteException;

import com.dabbo.starship.cell.CellCargoTransporter;
import com.dabbo.starship.cell.CellConsole;
import com.dabbo.starship.interfaces.Block;
import com.dabbo.starship.interfaces.Container;

public class BlockCargoBay extends BlockDefault {

	private static final long serialVersionUID = -6889444246193679462L;

	// XXXXXXXXX
	// XX     XX
	// X   C   X
	// X ----- X
	// X ----- X
	// X ----- X
	// X       X
	// XX     XX
	// XXXXXXXXX
		
	public BlockCargoBay(Container parent) throws RemoteException {
		super(parent);
		this.blockType = Block.BLOCK_CARGO;
		this.description = "Cargo Bay";
		for (int x = 2; x < 7; x++) {
			this.grid[3][x] = new CellCargoTransporter(this);			
			this.grid[4][x] = new CellCargoTransporter(this);
			this.grid[5][x] = new CellCargoTransporter(this);			
		}
		this.grid[2][4] = new CellConsole(this);

	}

}
